package com.tamecode.chapter06.sec45;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Author: Qiongchao
 * @Version: 1.0.0
 * @Date: 2023/9/26
 */
public class RefBeanTest {

    public static void main(String[] args) {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("sec6-45/beans.xml");
        ApplicationManager bean = applicationContext.getBean(ApplicationManager.class);
        System.out.println(bean);
        System.out.println(applicationContext.getBean(ApplicationManager2.class));
    }

}
